﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Acms.Bll;

namespace EdgleyDesign10.Web.Templates.Section
{
    public partial class Default : Acms.AcmsControls.TemplatePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void dsChildren_SelectData(object sender, Acms.DataControls.SelectEventArgs<Acms.Bll.Post> e)
        {
            if (AcmsContext.CurrentPost != null)
            {
                e.SetData(AcmsContext.CurrentPost.Children);
            }
            else
            {
                e.SetData(DummyPost.CreateDummyList(12));
            }
        }
    }
}
